﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using Royaumes_Libres.Database;

namespace Royaumes_Libres
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //cWorks.SetWorks(1, 30, 30, 20, 10, 10);

            cKingdom kingdom = new cKingdom(1, 1);
            ////string str = "";
            cBuildings[] lstBuilding = kingdom.GetBuilding();
            foreach (cBuildings building in lstBuilding)
            {
                //str += building.ToString();
                this.form1.Controls.Add(building.GetControl(Page));
            }
            ////this.test.InnerHtml = str;
            //this.test.InnerHtml = kingdom.ToString() + "<br/><br/>" + kingdom.Ressource.ToString();

            //ucBuilding uc = (ucBuilding)Page.LoadControl("ucBuilding.ascx");

            //this.form1.Controls.Add(uc);
        }
    }
}